Error: object 'mcars' not found
This is the other document
Plots
Below you will find a plot.
See this specific code
library(ggplot2)
ggplot(dataset,
aes(x = flexibility, y = anxiety, color = mindfulness)) +
geom_point()mtcars
Rysunek 1 illustrates a plot
See this specific code
```{r}
#| label: tbl-mtcars
library(DT)
datatable(mtcars)
```Tabela 1 is a table.
Linear model
This is a Linear Model: \[y = /beta_0 +/beta_1 X + /varepsilon\]
See this specific code
ggplot(mtcars,
aes(hp, mpg, color = factor(am))) +
geom_point() +
geom_smooth(formula = y ~ x, method = "loess") +
theme(legend.position = 'bottom')See this specific code
datatable(mtcars,
options = list(pageLength = 3))Multiple plots
Rysunek 2 illustrates differents plots. Rysunek 2 (a) stands for a, Rysunek 2 (b) represents b, Rysunek 2 (c) is just simply c and you can find Rysunek 2 (d) as d.
See this specific code
ggplot(mtcars,
aes(mpg, hp, size = gear)) +
geom_point()
ggplot(mtcars,
aes(mpg, hp, size = gear)) +
geom_point() +
geom_smooth()
ggplot(mtcars,
aes(mpg, hp, size = gear)) +
geom_point() +
geom_smooth(method = "lm")
ggplot(mtcars,
aes(mpg, hp, size = gear)) +
geom_point() +
geom_smooth(method = "glm", method.args = list(family = "poisson"))Multiple tables
Tabela 2 present 2 datasets: Tabela 2 (a) is car and Tabela 2 (b) is pressure
See this specific code
```{r}
#| label: tbl-tables
#| tbl-cap: "Datasets"
#| tbl-subcap:
#| - "Cars"
#| - "Pressure"
#| layout-ncol: 2
library(knitr)
kable(head(cars))
kable(head(pressure))
```| speed | dist |
|---|---|
| 4 | 2 |
| 4 | 10 |
| 7 | 4 |
| 7 | 22 |
| 8 | 16 |
| 9 | 10 |
| temperature | pressure |
|---|---|
| 0 | 0.0002 |
| 20 | 0.0012 |
| 40 | 0.0060 |
| 60 | 0.0300 |
| 80 | 0.0900 |
| 100 | 0.2700 |
Annotations
See this specific code
- 1
- This does that
- 2
- This is that
- 3
- This is something new
- 4
- Pay attention to that
Now I write some text and this code to find the minimum value of something 3.6875
The sample is composed by subjects with this many variable